home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000344_news@columbia.edu _Sun Dec 12 16:35:05 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA24205
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 12 Dec 1999 16:35:05 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA09381
  7.     for kermit.misc@watsun.cc.columbia.edu; Sun, 12 Dec 1999 16:26:34 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Subject: Re: k95 output doesn't!!
  11. Date: 12 Dec 1999 21:26:33 GMT
  12. Organization: Columbia University
  13. Message-ID: <8313u9$953$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <830s88$p2j$1@nnrp1.deja.com>,  <w_sykes@my-deja.com> wrote:
  17. : Hey !
  18. : Prepared for a stupid newbie question ?  I have an extremely simple
  19. : script, like so:
  20. : telnet 192.168.2.20
  21. : pause 3
  22. : output wonk\13
  23. : pause
  24. : output elvis\13
  25. : I know that I should be using inputs to identify the usename and
  26. : password prompts, but I removed them to try to determing the source of
  27. : the problem.  Well, this script happily connects to the host in
  28. : question, and then.... does nothing.  It never outputs the first text
  29. : string, "wonk".  If I control-c the session, it appears to want to try
  30. : to send the data after the session is closed.  It also does not work
  31. : without the pause (I tried removing it.).  With input statements in
  32. : place, same problem,  the script does not appear to ever get to the
  33. : point that it even evaluates the input. Just a connect, and then... a
  34. : coma.  Ideas ?  Am I connecting the wrong way ?
  35. : I am using k95, fully patched, including security on win98.  Kermit ini
  36. : is totally vanilla, nothing in custom.  Help!
  37.  
  38. You have two problems:
  39.  
  40. (1) the "telnet" command immediately places you into CONNECT mode.
  41.     if you want to script the connection you cannot use the TELNET 
  42.     command.  You must use 
  43.  
  44.     SET HOST 192.168.2.20
  45.  
  46.     And you should check the result for success or failure.
  47.  
  48. (2) The PAUSE commands do not process any incoming data including the
  49.     telnet negotiations.  You must use INPUT commands.
  50.  
  51.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  52.                  The Kermit Project * Columbia University
  53.               612 West 115th St #716 * New York, NY * 10025
  54.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org